<?php include_once('./configs/config.php');?><!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>提交领奖信息！</title>
<?php
if ($_COOKIE["liheid"]==$_GET[key]){
$sql="SELECT * FROM `510_lihekai` where `kid`='$_GET[key]'";
$total=mysql_num_rows(mysql_query($sql));
if ($total<$wxrs){
echo  "<script language=JavaScript>alert('参数出错!');location.href='index.php';</script>";
exit;
}
$ifkaijiang = mysql_query("SELECT * FROM 510_messages where c_mail='".$_GET[key]."'");
$ifkaijiangok = mysql_fetch_row($ifkaijiang);
if ($ifkaijiangok[0]!=""){
echo  "<script language=JavaScript>alert('参数出错!');location.href='index.php';</script>";
exit;
}
}else{
echo  "<script language=JavaScript>alert('参数出错!');location.href='index.php';</script>";
exit;
}
?>
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<script src='template/wb/js/jquery.min.js'></script>
<style type="text/css">
body{padding:0;margin:0;font-size:14px;font-family:Arial;}h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td{margin:0;padding:0;}dl,dt,dd,ul,li,ol{list-style:none;}img{border:0;}.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}
body{background:url(template/wb/images/tb.png) repeat-x;background-size:1px 324px;}
.main{width:100%;}
.main .box{width:100%;height:324px;background:url(template/wb/images/bg.jpg) center 0 no-repeat;background-size:320px 324px;display:block;}
.main .title{line-height:30px;font-size:20px;color:#fff;text-align:center;text-shadow:1px 1px 0 #d28ea7;padding-top:20px;}
.main .cont{width:90%;height:auto;text-align:center;padding-top:0px;margin-right: auto;margin-left: auto;}
.main .txt{text-align:center;}
.main .txt input{width:200px;height:45px;padding:0 10px;border:1px solid #bcbcbc;font-size:18px;color:#d7d7d7;}
.main .box p{text-align:left;text-shadow:1px 1px 0 #d28ea7;color:#fff;font-size:16px;padding-top:5px;width: 200px;margin-right: auto;margin-left: auto;}
.main .box p span{font-weight:bold;}
.main .btn{width:145px;height:49px;line-height:49px;background:url(template/wb/images/button_1.png) no-repeat;background-size:145px 49px;color:#fff;font-size:18px;text-align:center;margin:20px auto;}
.boxx{width:230px;font-size:14px;overflow:hidden;border:1px solid #ccc;border-radius:3px;margin-right: auto;margin-left: auto;padding-top: 15px;padding-right: 12px;padding-bottom: 15px;padding-left: 12px;}
.boxx input,.boxx button{margin:15px 0 0 0;}/*同时将input默认下边距清零*/
.boxx input{padding:13px 0;margin:10px 0;color:#000000;font-size:16px;width:100%;background-color:#ffffff;border:0;text-indent:3px;padding:8px 0;border-radius:3px;}
.boxx button{width:100%;text-align:center;border-radius:3px;border:0;width:110px;font-size:16px;padding:8px 0;}
.left{float:left;}.right{float:right;}.clear{clear:both;}
.button1{font-size:18px;padding:5px 0;border:1px solid #5a5a59;color:#ffffff;background-color:#FF2D7C;background-image:linear-gradient(to top, #FF2D7C, #FF2D7C 18%, ##FF478D);background-image:-webkit-gradient(linear, 0 100%, 0 0, from(#FF2D7C),color-stop(0.2,#FF2D7C),to(##FF478D));box-shadow: 0 1px 1px rgba(7, 56, 28, 0.61), 0 1px 1px rgba(255,255,255,0.51) inset;text-shadow: 0.5px 0.5px 1px rgba(15,114,57,0.75);}
.button1:active{background-color: #FF2D7C;background-image: linear-gradient(to top, #FF2D7C, #FF2D7C 24%, #FF478D);background-image:-webkit-gradient(linear, 0 100%, 0 0, from(#FF2D7C),color-stop(0.2,#FF2D7C),to(##FF478D));}
.button2{font-size:16px;padding:8px 0;border:1px solid #adadab;color:#000000;background-color: #e8e8e8;background-image:linear-gradient(to top, #dbdbdb, #f4f4f4);background-image:-webkit-gradient(linear, 0 100%, 0 0, from(#dbdbdb),to(#f4f4f4));box-shadow: 0 1px 1px rgba(0,0,0,0.45), inset 0 1px 1px #efefef; text-shadow: 0.5px 0.5px 1px #ffffff;}
.button2:active{background-color: #dedede;background-image: linear-gradient(to top, #cacaca, #e0e0e0);background-image:-webkit-gradient(linear, 0 100%, 0 0, from(#cacaca),to(#e0e0e0));}
</style>

</head>

<body><link rel="stylesheet" type="text/css" href="bdad.css">
<div class="main">
	<div class="box">
		<div class="title">请确认信息正确性以确保顺利兑奖</div>
	<div class="cont">
<form method='post' action='message.php?key=<?php echo $_GET[key];?>'>
<div id="party_join" class="boxx">
   <div><input name='name' id="join_nick" type="text" placeholder="输入你的大名"  value="" maxlength="20"/></div>
   <div><input name ='phone' id="join_phone" type="tel" placeholder="输入你的手机号"  maxlength="11"/></div>
   <div><div class="left"><button  class="button1" onClick="_join._post()">提交</button></div><div class="right"><button  class="button2" onClick="_party._join()">取消</button></div><div class="clear"></div></div>
</div>
</form>

<script>
    $(function() {
    $('#party_join').show();
        $('#join_post').click(function() {
            $('#party_join').show();
            $('#party_join').css("position","absolute");
            $('#party_join').css("top", ( $(window).height() - $('#party_join').height() ) / 2+$(window).scrollTop() + "px");
            $('#party_join').css("left", ( $(window).width() - $('#party_join').width() ) / 2+$(window).scrollLeft() + "px");
        })
    })
</script>

      </div>
	</div><!--/box-->
</div><!--/main-->


<div style="display:none;"></div>
</body>
</html>
